package com.guigu.wenzhiyi.controller;

import com.guigu.wenzhiyi.pojo.Bodytest;
import com.guigu.wenzhiyi.service.BodytestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("Bodytest")
public class BodytestController {

    @Autowired
    BodytestService bodytestService;

    @RequestMapping("/list")
    public List<Bodytest> list(Integer id, Integer type){
        Bodytest bodytest= new Bodytest();
        bodytest.setBodytypepeid(id);
        bodytest.setType(type);
        return bodytestService.list(bodytest);
    }



}
